package com.j2ee.spring.aop.xml.salary;

import org.aspectj.lang.ProceedingJoinPoint;

public class privilege {
	
	private String access ;

	public String getAccess() {
		return access;
	}

	public void setAccess(String access) {
		this.access = access;
	}
	
	public void accessMethod(ProceedingJoinPoint joinPoint) throws Throwable{
		if(access.equals("admin")) {
			joinPoint.proceed() ;
		} else {
			System.out.println("没有权限");
		}
	}
	
	

}
